package com.ittony.model.wechat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ittony.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "Menu")
@TableName("wechat_menu")
public class Menu extends BaseEntity {

    @ApiModelProperty(value = "id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "Name")
    private String name;

    @ApiModelProperty(value = "Type")
    private String type;

    @ApiModelProperty(value = "Website Link, User click menu can open link")
    private String url;

    @ApiModelProperty(value = "Menu Key Value, for sending msg")
    @TableField("menu_key")
    private String menuKey;

    @ApiModelProperty(value = "Sort")
    private Integer sort;
}
